package com.gooluke.spring.bean;

import com.gooluke.spring.annotation.Component;
import com.gooluke.spring.annotation.Value;

/**
 * @author gooluke
 * datetime 2025/4/28 17:13
 */
@Component
public class User {

    @Value("${gooluke.name:123}")
    private String name;
    @Value("${gooluke.test}")
    private boolean test;
    @Value("${gooluke.float}")
    private float rate;
    @Value("${gooluke.double}")
    private double money;
    @Value("${gooluke.long}")
    private long port;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isTest() {
        return test;
    }

    public void setTest(boolean test) {
        this.test = test;
    }

    public float getRate() {
        return rate;
    }

    public void setRate(float rate) {
        this.rate = rate;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public long getPort() {
        return port;
    }

    public void setPort(long port) {
        this.port = port;
    }
}
